<!--  <keep-alive> 是vue的内置组件，是抽象组件(没有DOM结构)
  生命周期:created mounted activated deactivated
  实现切换城市id与原先相同时，如果数据未改变则不会刷新-->
<template>
  <div id="app">
    <keep-alive include="Index,Detail">
      <router-view />
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
html,
body,
#app,
.container {
  height: 100%;
}
</style>